package com.ydj.app.protocol.http.web;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ydj.app.enumerate.BannerActionEnum;
import com.ydj.framework.protocol.JsonBaseResponse;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import java.util.LinkedList;
import java.util.List;

@Getter
@Setter
@Accessors(chain = true)
public class WebBannerListRes extends JsonBaseResponse {

    private List<WebBannerListResItem> list = new LinkedList<>();

    @Getter
    @Setter
    @Accessors(chain = true)
    public static class WebBannerListResItem {
        @ApiModelProperty(value = "ID", required = true)
        private Long id;

        @ApiModelProperty(value = "标题", required = true)
        private String title;

        @ApiModelProperty(value = "图片", required = true)
        private String image;

        @ApiModelProperty(value = "动作", required = true)
        private BannerActionEnum action;

        @ApiModelProperty(value = "跳转的URL（如果动作是跳转）")
        private String actionUrl;
    }

}